class CreateAttendences < ActiveRecord::Migration
  def self.up
    create_table :attendences do |t|
      t.integer :student_id
      t.integer :teacher_id
      t.integer :course_id
      t.integer :room_id
      t.datetime :attendtime
      t.integer :status, :default=>0
      t.timestamps
    end
  end

  def self.down
    drop_table :attendences
  end
end
